I2C_PCF8574_write block

Short summary

Name

I2C_PCF8574_write

→POU type

→function

Category

more system blocks, blocks for I2C elements

Graphical interface

Available since

  • version 1.13.0 (for Neuron Power Engineer) and version 2.3.901 of Neuron RTS max
    (warning) This block is supported for →Raspberry Pi only.

  • version 1.109.0 (for Neuron Power Engineer) and version 3.19.0 of Neuron RTS max
    (warning) This block is supported for Raspberry Pi and the platform LinuxX86 only.

Functionality

The block sets the outputs of PCF8574 (→I2C port expanders) to given values.

For more information on the PCF8574 chip see for example: http://www.nxp.com/documents/data_sheet/PCF8574.pdf (product specification by manufacturer NXP)

Inputs

 

Identifier

→Data type

Description

Inputs:

fd

DINT

the handle for the I2C device file opened by the I2C_Open block 

address

INT

the I2C address of the PCF8574 (port expander)

pin_values

ARRAY[0..7] OF BOOL

the states of the PCF8574 outputs

Input EN and output ENO are available when →calling the block. See "Execution control: EN, ENO" for information on input EN and output ENO.

See:

Example for usage within ST-editor

At present, there is no example.